package com.project.poetry.service.entity.po.poetry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.project.poetry.common.entity.BasePO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author mengxj
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_poetry")
public class PoetryPO extends BasePO {

    @ApiModelProperty("表id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("首句")
    private String firstSentence;

    @ApiModelProperty("t_author表id")
    private Long authorId;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("文本")
    private String content;

    @ApiModelProperty("序/前言")
    private String preface;

    @ApiModelProperty("类型")
    private String type;

    @ApiModelProperty("词的断句处，即上下片的句数")
    private Integer position;

    @ApiModelProperty("是否生成句子 0-否 1-是")
    private Integer syncStatus;
}
